package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 全部课程表
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Accessors(chain = true)
public class Course {

    /**
     * 课程id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 课程排序
     */
    private Integer sort;

    /**
     * 课时
     */
    private Integer count;

    /**
     * 说明
     */
    private String info;

    /**
     * 添加课程时间
     */
    private LocalDateTime inputTime;

    /**
     * 录入人id
     */
    private Integer inputId;

    /**
     * 课程图片
     */
    private String pic;

    /**
     * 0删除
     */
    @TableLogic
    private Boolean enable;

//    老师对象
    @TableField(exist = false)
    private Teacher teacher;
}
